//
//  Person.m
//  OC03_属性_点语法
//
//  Created by dllo on 16/2/26.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "Person.h"

@implementation Person

#pragma mark - init
- (instancetype)initWithName:(NSString *)name sex:(NSString *)sex age:(NSInteger)age{
    self = [super init];
    if (self) {
        _name = name;
        _sex = sex;
        _age = age;
    }
    return self;
}
#pragma mark - 构造器
+ (instancetype)person{

    return [[Person alloc] init];
    
}
+ (instancetype)personWithName:(NSString *)name sex:(NSString *)sex age:(NSInteger)age{
    
    return [[Person alloc] initWithName:name sex:sex age:age];
}




#pragma mark - other
@end
